//
//  ViewController.m
//  iOSReactNative
//
//  Created by 洛耳 on 2016/11/24.
//  Copyright © 2016年 ml. All rights reserved.
//

#import "ViewController.h"
#import "MLRNController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //确定按钮
    UIButton *quedingBtn = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 44)];
    
    [quedingBtn setTitle:@"确定" forState:UIControlStateNormal];
    
    quedingBtn.backgroundColor = [UIColor redColor];
    
    [quedingBtn addTarget:self action:@selector(dianjiBtn:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:quedingBtn];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)dianjiBtn:(UIButton *)btn{
    [self.navigationController pushViewController:[[MLRNController alloc] init] animated:YES];
    NSLog(@"点击了按钮");
}

@end
